package com.wl.common.system.support.dto;


import com.wl.common.core.web.dto.AbstractBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 资源表
 *
 * @author wanglin
 * @since 2023-09-18
 */
@Data
@Schema(description = "资源表")
public class SysResourceDTO extends AbstractBaseDTO {
    /**
     * 资源类型ID,大模块的分类id
     */
    @NotBlank(message = "资源类型ID不能为空")
    @Schema(description = "资源类型ID,大模块的分类id categoryId")
    private String categoryId;

    @Size(max = 200, message = "描述内容长度不能超过200个字符")
    @Schema(description = "描述 description")
    private String description;

    /**
     * 资源名称
     */
    @NotBlank(message = "资源名称不能为空")
    @Size(max = 30, message = "资源名称长度不能超过30个字符")
    @Schema(description = "资源名称 name")
    private String name;

    /**
     * 资源URL
     */
    @Schema(description = "资源URL url")
    private String url;
}